package com.itqf.Util.DTO;


import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

/**
* @Description: 结果集封装类
* @Param:  
* @return:  
* @Author: 陈岗阳
* @Date: 2019/10/20 
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResultDTO<T>
{
    private int code;
    private String message;
    private T data;
    private String map;
    private List<T> list;

    public ResultDTO(int code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public String getMap() {
        return map;
    }

    public ResultDTO(int code, String message, T data, String map, List <T> list) {
        this.code = code;
        this.message = message;
        this.data = data;
        this.map = map;
        this.list = list;
    }

    public void setMap(String map) {
        this.map = map;
    }

    public ResultDTO(int code, String message, T data, String map) {
        this.code = code;
        this.message = message;
        this.data = data;
        this.map = map;
    }

    public List <T> getList() {
        return list;
    }

    public void setList(List <T> list) {
        this.list = list;
    }

    public ResultDTO() {
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
